package com.xiaohudie.JUC;

/**
 * @Author xiao hu die
 * @Date 2022/1/16 0:50
 * @Version 1.0
 */
public class Thread16 {
    public static void main(String[] args) {
        Integer a =1;
        Integer run = run(a);
        System.out.println(run);
    }
    public static Integer run(Integer integer){

        integer++;
        if (integer>=10){
            return 10;
        }
        if (integer<10) {
            run(integer);
        }
            return integer;

    }
}
